package com.elric.mall.mapper;


import com.elric.mall.model.Group;
import com.elric.mall.model.Location;
import com.elric.mall.model.Project;
import com.elric.mall.model.ProjectType;
import com.elric.mall.model.ProjectEntityNew;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProjectMapper {
    Integer getCount();

    Integer getAmount();

    List<Group> groupByZyx();

    List<Group> groupByJZ();

    List<Group> groupByZq();

    List<Group> getUnitList();

    List<Group> getLevelDataByUnit(String unitName);

    List<Group> getZjdwByUnit(String unitName);

    List<Group> getAreaDataByUnit(String unitName);

    List<Group> getSsjzDataByUnit(String unitName);

    List<Group> getPowerDataByUnit(String unitName);

    List<Group> getLevelData();

    List<Group> getNltxDataByLevel(String level);

    List<Group> getJsxzDataByLevel(String level);

    List<Group> getZztxDataByLevel(String level);

    List<Group> getSsjzDataByLevel(String level);

    List<Group> getFieldsDataByLevel(String level);

    List<Group> getUnitDataByLevel(String level);


    List<Location> queryCountByLocation();

    List<Project> getProjectList(String name);

    // 建设进度分析mapper
    List<Group> getProcessList();

    List<ProjectType> getProjectByGroup();

    List<Group> getJiqunCountByProject(String unitName);

    List<Group> getUnitCountByProject(String unitName);

    List<Group> getStatusByProject(String unitName);

    List<Group> getLevelByProject(String unitName);

    List<Group> getFieldByProject(String unitName);
    List<Group> getProcessListByUpperUnit(String status);
    List<Group> getProcessListBySsjz(String status);
    List<Group> getProcessListByLevel(String status);
    List<Group> getProcessListByNltx(String status);
    List<ProjectEntityNew> getProjectProcessList(String status);
}
